import React from "react";
import {inject, observer} from 'mobx-react';
import {Tools, Modal, Button, List, InputItem} from "weaver-mobile";

const getLabel = Tools.getLabel;

@observer
export default class Main extends React.Component {
    constructor(props) {
        super(props);
    }

    saveAuthCode(val) {
        const {secondAuthStore} = this.props;
        secondAuthStore.saveAuthCode(val);
    }

    render() {
        return (
            <List>
                <InputItem
                    className="ca-auth-inputitem"
                    placeholder={getLabel(501200, "请输入动态令牌")}
                    onChange={this.saveAuthCode.bind(this)}/>
            </List>
        );
    }
}
